package com.xuetang9.t9.hotel.services;


import com.xuetang9.t9.hotel.beans.BlackList;
import com.xuetang9.t9.hotel.mapper.condition.impl.BlackListCondition;
import com.xuetang9.t9.hotel.utils.ResponseResult;

/**
 * 黑名单
 * @author pang
 */
public interface IBlackListService {

    /**
     * 添加黑名单
     * @param blackList
     * @return
     */
    boolean save(BlackList blackList);

    /**
     * 更新黑名单
     * @param blackList
     * @return
     */
    boolean update(BlackList blackList);

    /**
     * 删除黑名单
     * @param id
     * @return
     */
    boolean remove(Integer id);


    /**
     * 根据条件查询黑名单列表
     * @param blackListCondition
     * @return
     */
    ResponseResult queryByAll(BlackListCondition blackListCondition);

    /**
     * 根据条件查询黑名单总数
     * @param blackListCondition
     * @return
     */
    ResponseResult queryByCount(BlackListCondition blackListCondition);
}
